package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.Store")
@Data
@TableName(value = "store")
public class Store {
    /**
     * 店铺id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "店铺id")
    private Integer id;

    /**
     * 店铺名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "店铺名称")
    private String name;

    /**
     * 店铺主人id
     */
    @TableField(value = "store_master")
    @ApiModelProperty(value = "店铺主人id")
    private Long storeMaster;

    /**
     * 店铺的实际地址，可以写注册人的地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "店铺的实际地址，可以写注册人的地址")
    private String address;

    /**
     * 店铺主页,直接是html内容
     */
    @TableField(value = "index_html")
    @ApiModelProperty(value = "店铺主页,直接是html内容")
    private String indexHtml;

    /**
     * 店铺活动
     */
    @TableField(value = "activity_id")
    @ApiModelProperty(value = "店铺活动")
    private Integer activityId;

    /**
     * 店铺礼品
     */
    @TableField(value = "gift")
    @ApiModelProperty(value = "店铺礼品")
    private Integer gift;

    /**
     * 店铺级别
     */
    @TableField(value = "level")
    @ApiModelProperty(value = "店铺级别")
    private Integer level;

    /**
     * 店铺图标
     */
    @TableField(value = "icon")
    @ApiModelProperty(value = "店铺图标")
    private String icon;

    /**
     * 店铺简介
     */
    @TableField(value = "introduce")
    @ApiModelProperty(value = "店铺简介")
    private String introduce;

    /**
     * 商家账户总金额，单位分
     */
    @TableField(value = "total_money")
    @ApiModelProperty(value = "商家账户总金额，单位分")
    private Integer totalMoney;

    @TableField(value = "phones")
    @ApiModelProperty(value = "邮费")
    private String phones;


    @TableField(value = "postage")
    @ApiModelProperty(value = "邮费")
    private Integer postage;

    @TableField(exist = false)
    private List<Map<String,Object>> payTypeBeans;
}
